import instance from "../http"
//添加购物车
function addCar(data){
  return instance({
    method:"POST",
    url:"/cart/addCart",
    ContentType:"x-www-form-urlencoded",
    data
  })
}
// 购物车列表
function Carlist(data){
  return instance({
    method:"GET",
    url:"/cart/cartList",
    
    data
  })
}
//删除商品
function delPro(data){
  return instance({
    method:"GET",
    url:"/cart/deleteAction",
    
    data
  })
}
//收藏商品列表
function colllist(data){
  return instance({
    method:"GET",
    url:"/collect/listAction",
    
    data
  })
}
//添加收藏
function addcollet(data){
  return instance({
    method:"POST",
    url:"/collect/addcollect",
    ContentType:"x-www-form-urlencoded",
    data
  })
}
export default {
  addCar,
  Carlist,
  delPro,
  colllist,
  addcollet
}